
<!DOCTYPE HTML>
<head>
<meta charset="utf-8" />
<meta name="author" content="<?php echo htmlspecialchars($this->_var['config']['author']); ?>" />
<meta name="keywords" content="<?php echo htmlspecialchars($this->_var['config']['keywords']); ?>" />
<meta name="description" content="<?php echo htmlspecialchars($this->_var['config']['description']); ?>" />
<title>投稿中心 - <?php echo htmlspecialchars($this->_var['config']['title']); ?></title>
<style type="text/css">
body, h1, h2, h3, p, quote, small, form, input, ul, li, ol, label {margin:0px; padding:0px;}
body {background-color:#f5f5f5; color:#555555; font-size:13px; font-family:Arial, Helvetica, sans-serif;}
.clear {clear:both;}
#main-container {margin:30px auto;width:960px}
#form-container {padding:15px; -moz-border-radius:12px; -khtml-border-radius: 12px; -webkit-border-radius: 12px; border-radius:12px;}
td {white-space:nowrap;}
a, a:visited {color:#00BBFF; text-decoration:none; outline:none;}
a:hover {text-decoration:underline;}
h1 {color:#777777; font-size:22px; font-weight:normal; text-transform:uppercase; margin-bottom:5px;}
h2 {font-weight:normal; font-size:10px; text-transform:uppercase; color:#aaaaaa; margin-bottom:15px; border-bottom:1px solid #eeeeee; margin-bottom:15px; padding-bottom:10px;}
label {font-size:13px; font-family:Tahoma, Arial, Sans-serif;}
textarea {color:#404040; font-family:Arial, Helvetica, sans-serif; font-size:12px;}
td > button {text-indent:8px;}
.error {background-color:#AB0000; color:white; font-size:10px; font-weight:bold; margin-top:10px; padding:10px; text-transform:uppercase; width:240px;}
#loading {position:relative; bottom:9px; visibility:hidden;}
.tutorial-info {color:white; text-align:center; padding:10px; margin-top:10px;}
#nav {background:#2D2D2D; height:30px;}
#nav ul {list-style:none;}
#nav ul li {float:left; line-height:30px; font-weight:bold;}
#nav ul li a {display:block; padding:0px 10px; color:#CCCCCC; position: relative; height:30px; float:left; font-family: arial, sans-serif;}
#nav ul li a:hover {background:#4C4C4C; color:#fff; height:30px;}
.nav_a {border-top:2px solid red; color:#FFFFFF; font-weight:bold;}
.right {float:right;}
#copyright { width:100%; text-align:center; margin:30px auto;color: #939598;
font-size: 13px; }
</style>
<link rel="stylesheet" type="text/css" href="res/jf/jqtransformplugin/jqtransform.css" />
<link rel="stylesheet" type="text/css" href="res/jf/formValidator/validationEngine.jquery.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="res/jf/jqtransformplugin/jquery.jqtransform.js"></script>
<script type="text/javascript" src="res/jf/formValidator/jquery.validationEngine.js"></script>
<script type="text/javascript">
function check(){
	var title=$('#draft_title').val();
	var content=$('#draft_content').val();
	var author=$('#draft_author').val();
	if($.trim(title)==''){
		alert('标题不能为空');
		$('#draft_title').focus();
		return false;
	}
	if($.trim(content)==''){
		alert('内容不能为空');
		$('#draft_content').focus();
		return false;
	}
	if($.trim(author)==''){
		alert('作者不能为空');
		$('#draft_content').author();
		return false;
	}
	return true;
}
jQuery(function(){
	$('#contact-form').jqTransform();
});
</script>
</head>
<body>
<?php echo $this->_var['header']; ?>
<div id="main-container">
	<div id="form-container">
    <h1>Fancy Contact Form</h1>
    <h2>Drop us a line and we will get back to you</h2>
    <form id="contact-form" onsubmit="return check()" name="contact-form" method="post" action="front.php?action=content&do=draft_insert">
      <table width="100%" border="0" cellspacing="0" cellpadding="5">
        <tr>
          <td width="15%"><label for="name">标题 :</label></td>
          <td width="70%"><input type="text" name="draft_title" id="draft_title" class="input" size="50"/></td>
          <td width="15%" id="errOffset">&nbsp;</td>
        </tr>
        <tr>
          <td><label for="subject">类别 :</label></td>
          <td><select name="subject" id="subject" style="width:100px">
            <?php $_from=$this->_var['category']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('$attrs[key]', '$attrs[item]');if (count($_from)):
    foreach ($_from AS $this->_var['cat']):
?>
			  <option value="<?php echo $this->_var['cat']['name']; ?>"><?php echo $this->_var['cat']['name']; ?></option>
			  <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();?>
          </select>          </td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td valign="top"><label for="message">内容 :</label></td>
          <td><textarea name="draft_content" id="draft_content" cols="120" rows="5"></textarea></td>
          <td valign="top">&nbsp;</td>
        </tr>
        <tr>
          <td><label for="email">作者 :</label></td>
          <td><input type="text" name="draft_author" id="draft_author" class="input"/></td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td valign="top">&nbsp;</td>
          <td colspan="2"><input type="submit" name="button" id="button" value="Submit" />
          <input type="reset" name="button2" id="button2" value="Reset" />
        </tr>
      </table>
      </form>
    </div>
</div>

















<?php echo $this->_var['footer']; ?>
</body>
</html>